package com.miracle.system.web;

import com.miracle.common.utils.SearchUtils;
import com.miracle.system.base.domain.ResultMap;
import com.miracle.system.domain.SysOrg;
import com.miracle.system.service.SysOrgService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ：miracle.cui
 * @description：TODO
 * @date ：2020/8/21 17:31
 */
@ApiModel(value = "组织管理类")
@RestController
@RequestMapping("/system/org")
public class SysOrgController {

    @Autowired
    SysOrgService orgService;

    @ApiOperation(value = "组织列表")
    @GetMapping("/list")
    public ResultMap list(SysOrg org){

        List<SysOrg> orgList = orgService.selectOrgList(org);
        return ResultMap.success("成功", orgList);
    }
}
